package com.google.code.msgbooster.model.extension;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Link;
import com.google.code.msgbooster.model.Meta;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public final class Stack extends Meta {

	private static final long serialVersionUID = 7717458763680509810L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String content;

	@Persistent
	private Link resource;

	@Persistent
	private Link fixedLink;
	
	@Persistent
	private Date createTime;
	
	@Persistent
	private Date updateTime;
	
	@Persistent
	private Key consumer;

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Link getResource() {
		return resource;
	}

	public void setResource(Link resource) {
		this.resource = resource;
	}

	public Link getFixedLink() {
		return fixedLink;
	}

	public void setFixedLink(Link fixedLink) {
		this.fixedLink = fixedLink;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Key getConsumer() {
		return consumer;
	}

	public void setConsumer(Key consumer) {
		this.consumer = consumer;
	}
}
